package com.vhall.component.entity.inav.vo;

import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author lsl
 * @since 2021/6/3
 */
@Data
public class SetDeviceReqVO implements Serializable {

    @NotBlank(message = "room_id不能为空")
    @ParamName("room_id")
    private String roomId;

    @ParamName("account_id")
    @NotBlank(message = "account_id不能为空")
    private String accountId;

    @ParamName("status")
    @NotBlank(message = "状态不能为空")
    @Pattern(regexp = "(0)|(1)|(2)", message = "状态 只能是0,1,2")
    private String status;

    /**
     * device_type 0=未知设备,1=h5手机端,2=pc,3=sdk,4=app
     */
    @ParamName("type")
    @NotBlank(message = "类型不能为空")
    @Pattern(regexp = "(0)|(1)|(2)|(3)|(4)", message = "类型 只能是0,1,2,3,4")
    private String type;

    @ParamName("from")
    private String from;


    @ParamName("vss_token")
    private String vssToken;

    @ParamName("en")
    private String en;
}
